<?php $yesNoArray = DataUtil::getOptionYesNoEmpty();?>
<html>
<body>
<div style="width: 90%; margin: 0 auto; text-align: center;">
<div style="float:left"><img height="60" src='http://www.invisibleit.com.au/images/FitZone/company_logo.jpg'></div>

<small>
	Ph: (02) 9451 0333 <br/>
	Email: service@fitzone.com.au<br />
	</small><p style="clear: both;"></p>

<font size=4 ><B>SERVICE FORM</B></font><p></p>

<table border=1 style="width: 100%">
<tr>
<td><B>SERVICE REF NO:</B>&nbsp;<?php echo $service->id;?></td>
<td><B>DATE:</B>&nbsp;<?php echo date('d-M-Y', strtotime($service->date));?></td>
</tr>
<tr>
<td colspan=2><B>TECHNICIAN:</B>&nbsp;<?php echo $service->technician->name;?></td>
</tr>
<tr>
<td colspan=2><B>CUSTOMER NAME:</B>&nbsp;<?php echo $service->firstName.' '.$service->LastName;?>  </td>
</tr>
<tr>
<td colspan=2><B>ADDRESS:</B>&nbsp;<?php echo $service->address.', '.$service->suburb.', '.$service->state. ' '.$service->postcode;?></td>
</tr>
<tr>
<td><B>HOME TEL:</B>&nbsp;<?php echo $service->homePhone;?></td>
<td><B>BUS TEL:</B>&nbsp;<?php echo $service->workPhone;?></td>
</tr>
<tr>
<td><B>MOBILE:</B>&nbsp;<?php echo $service->mobile;?></td>
<td><B>EMAIL:</B>&nbsp;<?php echo $service->email;?></td>
</tr>
</table>
<P></P>

<font size=4><B>PRODUCT INFORMATION</B></font><BR>
<table width=90% border=1  style="width: 100%">
<tr>
<td><b>NAME:</b>&nbsp;<?php echo $service->product->name;?></td>
<td colspan=2><B>MODEL NO:</B>&nbsp;<?php echo $service->product->model;?></td>
</tr>
<tr>
<td><B>SERIAL NO:</B>&nbsp;<?php echo $service->serialNo;?></td>
<td colspan=2><B>W'TY(Y/N):</B>&nbsp;<?php echo $yesNoArray[$service->warranty];?></td>
</tr>
<tr>
<td><B>PURCH DATE:</B>&nbsp;<?php echo date('d-M-Y', strtotime($service->purchaseDate));?></td>
<td colspan=2><B>PURCH DATE VERIFIED (Y/N):</B></td>
</tr>
<tr>
<td colspan=3><B>FAULT DESCRIPTION:</B>&nbsp; <?php echo $service->faultDescription;?><p></p></td>
</tr>
<tr>
<td colspan=3><B>OTHER INSTRUCTIONS:</B>&nbsp; <?php echo $service->otherInstruction;?><p></p></td>
</tr>
<tr>
<td colspan=3><B>Customer A/C number:</B>&nbsp; <?php echo $service->customerAccountNo;?><p></p></td>
</tr>
<tr>
<td colspan=3><B>Store TIN:</B>&nbsp; <?php echo $service->storeTinNo;?><p></p></td>
</tr>
<tr>
<td colspan=3><center><font size=4><b>SPARE PARTS REQUIRED</b></font></center></td>
</tr>
<tr>
<td align=center><b>PARTS NAME</b></td>
<td align=center><b>PARTS NUMBER</b></td>
<td align=center><b>QTY</b></td>
</tr>
<?php
if(empty($service->partActions)){
	echo "<tr><td colspan=3><center>No Parts Needed!</center></td></tr>";
}else{
	$partActions=$service->partActions;
	foreach ($partActions as $partAction){
		echo "<tr>";
		echo "<td>".$partAction->part->name."</td>";
		echo "<td>".$partAction->part->num."</td>";
		echo "<td>".$partAction->requestQty."</td>";
		echo "</tr>";	
	}
}
?>
</table><p></p>

<table border=1 style="width: 100%">
<tr>
<td colspan=5><b>WORK CARRIED OUT:</b><br>&nbsp;<br>&nbsp;</td>
</tr>
<tr>
<td><b>START TIME</b></td>
<td><b>FINISH TIME</b></td>
<td><b>DATE</b></td>
<td><b>CUST SIGN</b></td>
<td><b>CUST PRINT</b></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p></p>

<font size=4 ><B>PAYMENT INFORMATION</B></font>
<table border=1 style="width: 100%">
<tr><td>
<p style="text-align: justify; padding-top: 0.8em;">
<b>CARD NAME:</b>_______________________________________<br /></p>
<p style="text-align: justify;"><b>CARD NUMBER:</b> __ __ __ __ / __ __ __ __ / __ __ __ __ / __ __ __ __</p>
<p style="text-align: justify;"><b>CARD EXP DATE:</b>  __ __ / __ __ __ __ &nbsp;&nbsp;&nbsp;
<b>AMOUNT PAID:</b> $ __ __ __ __ __ </p>
<p style="text-align: justify;"><b>CUSTOMERS SIGNATURE:</b> __________________________________</p>
</td></tr>
</table>

</div>
</body>
</html>